package edu.sctu.practice.class02.Wangpeng.Assign03;

/**
 * Created by wp on 2015/11/4.
 */
public abstract class  GeometricObject {
    protected String color;
    protected double weight;

    protected GeometricObject(){
        color="white";
        weight=1.0;
    }
    protected GeometricObject(String color,double weight){
        this.color=color;
        this.weight=weight;
    }
    public String getColor(){
        return color;
    }
    public void setColor(String color){
        this.color=color;
    }
    public double getWeight(){
        return weight;
    }
    public void setWeight(double weight){
        this.weight=weight;
    }
    public abstract double findArea();
    public abstract double findPerimeter();

}
